// 基本信息
import DialogBox from "@/components/DialogBox";
import RunningLog from "@/components/Sansan/Model/components/RunningLog.vue";
import { PropType, defineComponent } from "vue";
export default defineComponent({
	props: {
		width: String,
		title: String,
		footerLabel: Object as PropType<(String | undefined)[]>,
		detail: {
			type: Object,
			default() {
				return {};
			}
		}
	},
	emits: ["submit"],
	setup(props, { attrs }) {
		onMounted(() => {});
		return () => {
			return (
				<DialogBox footerLabel={props.footerLabel} {...attrs} width={props.width} title={props.title}>
					{attrs.visible ? <RunningLog id={props.detail.id} /> : null}
				</DialogBox>
			);
		};
	}
});
